import Vue from 'vue'
import VueRouter from 'vue-router'
import index from "@/views/managerlogin/index.vue"
import login from "@/views/managerlogin/login.vue"
import manage from "@/views/manage";
import positionrouters from "@/router/positionReview";
import adminIstrationReViewrouters from "@/router/adminIstrationReView";
import userManagementReViewrouters from "@/router/userManagementReView";
import managerrouters from "@/router/managerReview";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: login
  },
  {
    path: '/manage',
    name: 'manage',
    component: manage,
    children:[
      {
        path: 'index',
        name: 'index',
        component: index
      },
        ...positionrouters,
        ...adminIstrationReViewrouters,
        ...userManagementReViewrouters,
        ...managerrouters
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
